net/http.readTrackingBody.didRead (field)
4 uses
net/http (current package)
transfer.go#L434: r.didRead = true
transport.go#L763: didRead bool // not atomic.Bool because only one goroutine (the user's) should be accessing
transport.go#L768: r.didRead = true
transport.go#L797: if req.Body == nil || req.Body == NoBody || (!req.Body.(*readTrackingBody).didRead && !req.Body.(*readTrackingBody).didClose.Load()) {
![]() |
The pages are generated with Golds v0.8.4. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |